
package com.welsy.usermgt.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.welsy.usermgt.command.*	
	import com.welsy.usermgt.event.*;
		
	
	/**
	 * @version	$Revision: 1.1 $
	 */
	public class MainController extends FrontController
	{
		public function MainController()
		{
			initialiseCommands();
		}
		
		public function initialiseCommands() : void
		{
			addCommand(SearchEvent.EVENT_SEARCH, SearchCommand);
			addCommand(EditUserEvent.EVENT_EDITUSER, EditUserCommand);
			addCommand(RemoveUserEvent.EVENT_REMOVEUSER, RemoveUserCommand);			
			addCommand(UpdateClassEvent.EVENT_UPDATECLASS, UpdateClassCommand);
			addCommand(RemoveFromClassEvent.EVENT_REMOVEFROMCLASS, RemoveFromClassCommand);
		}	
	}
}